package org.aynu.paymentservice.feign;

import org.aynu.orderservice.common.OrderResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * 订单服务客户端
 *
 * @author 小粥
 * @since 2025/03/04
 */

@FeignClient(value = "Order-Service")
public interface OrderServiceClient {

    /**
     * 更新订单状态
     *
     * @param map 地图
     * @return {@link OrderResponse }<{@link Integer }>
     * @author 小粥
     * @since 2025/03/04
     */

    @RequestMapping(value = "/order/updateOrderStatus", method = RequestMethod.POST)
    OrderResponse<Integer> updateOrderStatus(@RequestBody Map<String, Object> map);




}
